#ifndef PROCESSBAR_H
#define PROCESSBAR_H

#include <stdio.h>


typedef struct _processBar pBar_t;

typedef struct _processBar_backend {
    void (*step_newLine)(pBar_t *ctx, __uint16_t barII);
    void (*step)(pBar_t *ctx, __uint16_t barII);
    void (*release)(pBar_t *ctx);

}processBar_backend_t;

struct _processBar {
    __uint16_t blockN;
    __uint16_t barN;

    const processBar_backend_t *backend;
};

pBar_t* pBar_init(__uint16_t barN);



#endif /* PROCESSBAR_H */
